#ifndef _K_TRACE_
#define _K_TRACE_

namespace krt
{
	KRUNTIME_API void _cdecl DbgOutput(LPCSTR fmt, ...);

	KRUNTIME_API void AssertFailed(char* FileName, int LineNum);

#ifdef _DEBUG
#define KTRACE(x, ...) DbgOutput(x, __VA_ARGS__)
#define KASSERT(x)	if (!(x)) AssertFailed(__FILE__, __LINE__)
#else
#define KTRACE(x, ...) 
#define KASSERT(x)	NULL
#endif
}

#endif	//_K_TRACE_
